package com.kd.data.transport;

import java.util.concurrent.Semaphore;

public class DirLock {

	private static final Semaphore semp = new Semaphore(1);
	private static final DirLock lock = new DirLock();
	
	public static DirLock getInstance() {
		return lock;
	}
	
	public void acquire() throws InterruptedException {
		semp.acquire();
	}
	
	public void release() {
		semp.release();
	}
}
